import type { VxeGridProps } from '#/adapter/vxe-table'

// 列表表头
export const columns: VxeGridProps['columns'] = [
    { align: 'center', title: '', type: 'checkbox', width: 80 },
    { title: '序号', type: 'seq', width: 50 },
    { field: 'url1', title: '图片',slots: { default: 'url' }},
    { field: 'fileName', title: '链接' },
    { field: 'isUsed', title: '是否已使用',slots: { default: 'isUsed' } },
]

export const formSchema = [
    {
        fieldName: 'url',
        label: '链接',
        component: 'Input'
    },
    {
        fieldName: 'isUsed',
        label: '是否使用',
        component: 'Select',
        componentProps: {
            options: [
                { label: '全部', value: "null" },
                { label: '是', value: true },
                { label: '否', value: false }
            ]
        }
    }
]
